<style>
	@import url('./quickeye.css');
</style>
<template>
	<!-- 公共头部 -->
	<view> <my-header :title="'快眼扫描'" :lefticon="'left'"></my-header></view>
 
	<!-- 快眼扫描 -->
 
		<view class="content">
			<view class="headertop">
				<view><text>第{{sucesswtopic+errorwtopic+1}}题</text><text>正确{{sucesswtopic}}</text><text>错误{{errorwtopic}}</text></view>
				<view class="submit floatright" @click="confirmsubmit()">提交</view>
			</view>
			<view class="projectexercisestwo_top_b" v-show="ifcountdown"><text>{{countdownstr}}：<text
						class="time">{{times}}:{{seconds}}</text></text></view>

			<view class="body">
				<uni-transition ref="ani" class="ifshwoa" :mode-class="modeClass" duration='0' :show="upishow">
					<view class="list">
						<text v-for="(item,index) in questions">{{item}}</text>
					</view>
				</uni-transition>

				<uni-transition ref="ani" :mode-class="modeClass" duration='0' :show="downishow"  >
					<view class="list" v-for="(item,index) in answer" :class="index==selectedindex?clickStyles:''">
						<view @touchstart="clickhandle(item,index)"><text v-for="(v,i) in item">{{v}}</text></view>
					</view>
				</uni-transition>

			</view>
			<view class="start" v-if="iffirststart==1">
				<view class="gramestart" @click="begin()" v-show="show">开始</view>
			</view>

			<!-- 闯关结果 -->
			<!-- 遮罩 -->
			<view v-show="ifpass" class="masking"></view>
			<view class="passTheResult" v-show="ifpass">
				<view class="passTheResultlevel">
					<view class="type-color">闯关结果</view>
					<view><text>得分：</text>{{totalscore}}分</view>
					<!-- <view><text>实时名次：</text>暂无</view> -->
					<!-- 关卡 -->
					<view class="level" v-for="(item,index) in btna" @click="clickList(index)">
						<view class="text">{{item}}</view>
					</view>
				</view>
			</view>
		</view>
 

</template>
<script type="module" src="./quickeye.js"></script>